<!-- Show Address -->
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main" />
  <title>${company?.name} ${addressType} Address</title>
</head>
<body>
  <div class="body">
    <h1>${company?.name} ${addressType} Address</h1>
    <g:render template="/common/flashMessage" />
    <div class="dialog">
      <table>
        <tbody>
          <tr class="prop">
            <td valign="top" class="name">Line 1:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'line1')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Line 2:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'line2')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Suite:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'suite')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">City:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'city')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">State:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'state')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Country:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'country')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Zip:</td>
            <td valign="top" class="value">${fieldValue(bean:address, field:'postalCode')}</td>
          </tr>
        </tbody>
      </table>
    </div>
    <div class="buttons">
      <g:form>
        <input type="hidden" name="id" value="${address?.id}" />
        <input type="hidden" name="companyId" value="${company?.id}" />
        <input type="hidden" name="addressType" value="${addressType}" />
        <span class="button"><input type="button" value="Back" onClick="history.back()"></span>
        <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
        <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
      </g:form>
    </div>
  </div>
</body>
